<?php

	echo "\nIntroduce n y p ";
	fscanf(STDIN, "%d %d\n", $n, $p);
	
	for ($i = 0; $i < $n; $i++) {
		for ($j = 0; $j < $p; $j++) {
			echo $j;
		}
	}

?>